/**
 * @file com.demon.esport.register.eureka.server.config
 * @CopyRight (C) www.10-game.com
 * @author jeffreychan
 * @email mebeyfeng@qq.com
 * @date 2018/12/1 00:15
 */

package com.demon.esport.register.eureka.server.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author: jeffreychan
 * @Date: 2018/12/1 00:15
 * @Description: 默认密码解析
 */
public class DefaultPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return s.equals(charSequence.toString());
    }
}
